package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.LsthdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface LsthdService extends BaseService<LsthdBean> {

	LsthdBean getLsthdBeanById(String id) throws Exception;
	
	void removeLsthdBeanById(String id) throws Exception;
	
	void removeLsthdBeanByIds(String ids) throws Exception;
	
	LsthdBean saveLsthdBean(LsthdBean crm) throws Exception;
	
	LsthdBean updateLsthdBean(LsthdBean crm) throws Exception;
	
	Page<LsthdBean>  findLsthdBeanByCond(LsthdBean bean,
			Page<LsthdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveLsthdBeanExt(String sql) throws Exception;

	String findLsthdBeanExtCreate(String tableName) throws Exception;

	String findLsthdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findLsthdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasLsthdBeanExtData(String tableName, String id)
			throws Exception;
}